﻿using System;
using System.Collections.Generic;
using System.Text;

namespace System {
    /// <summary>
    /// 缓存帮助类
    /// </summary>
    public class CacheHelper {
        /// <summary>
        /// 静态构造函数，初始化缓存类型
        /// </summary>
        static CacheHelper() {
            Cache=new MemoryCacheService();
            CacheKeys=new List<string>();
        }

        /// <summary>
        /// 默认缓存
        /// </summary>
        public static ICacheService Cache { get; }
        public static List<string> CacheKeys { get; set; }
    }

    /// <summary>
    /// 默认缓存类型
    /// </summary>
    public enum CacheType {
        /// <summary>
        /// 系统缓存
        /// </summary>
        SystemCache,

        /// <summary>
        /// Redis缓存
        /// </summary>
        RedisCache
    }
}
